package com.ojoin.trade.supplyloan_core.web.service.impl;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.dao.BaseDao;
import com.ojoin.trade.common.web.service.impl.BaseServiceImpl;
import com.ojoin.trade.supplyloan_core.web.dao.TbSlLoanInfoLogDao;
import com.ojoin.trade.supplyloan_core.web.domain.TbSlLoanInfoLog;
import com.ojoin.trade.supplyloan_core.web.service.TbSLLoanInfoLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-12-25
 * Time: 下午4:08
 * To change this template use File | Settings | File Templates.
 */
@Service
public class TbSLLoanInfoLogServiceImpl extends BaseServiceImpl<TbSlLoanInfoLog> implements TbSLLoanInfoLogService {

    @Autowired
    private TbSlLoanInfoLogDao dao;
    @Override
    protected BaseDao<TbSlLoanInfoLog> getBaseDao() {
        return dao;  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public void insertTbSlLoanInfo(TbSlLoanInfoLog logvo) throws BusinessException {

        ((TbSlLoanInfoLogDao)this.getBaseDao()).insertTbSlLoanInfo(logvo);

    }

    @Override
    public List<TbSlLoanInfoLog> queryTbSlLoanInfoLogByJoinid(int idOfTbMerchantUser, Pageable page) throws BusinessException {
        return ((TbSlLoanInfoLogDao)this.getBaseDao()).queryTbSlLoanInfoLogByJoinid(idOfTbMerchantUser,page);
    }
}
